// components/goodlLst/goodList.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    goodList:{
      type:Array,
      value:[]
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
      
  },

  /**
   * 组件的方法列表
   */
  methods: {
    detailsBtn(e){
      var index = parseInt(e.currentTarget.dataset.index);
      // console.log(index);
      let particulars = JSON.stringify(this.data.goodList[index]);
      let goodlist = JSON.stringify(this.data.goodList);
      wx.navigateTo({
        url: '../particulars/particulars?particulars=' + particulars + '&goodlist='+goodlist,
      })
    }
  }
})
